package com.fqgj.xjd.user.client.request;

import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;

import java.io.Serializable;
import java.util.List;

/**
 * @program: cashmama-user
 * @description
 * @author: frank
 * @create: 2020-11-03 10:01
 **/
public class CopyUserRequest implements Serializable {
    private static final long serialVersionUID = -8569171348596539137L;

    /**
     * 待复制userCode
     */
    private String userCode;
    /**
     * 目标appCode
     */
    private String targetAppCode;
    /**
     * 原始类目
     */
    private String originCategoryCode;
    /**
     * 目标类目
     */
    private String targetCategoryCode;

    public String getTargetAppCode() {
        return targetAppCode;
    }

    public CopyUserRequest setTargetAppCode(String targetAppCode) {
        this.targetAppCode = targetAppCode;
        return this;
    }

    public String getOriginCategoryCode() {
        return originCategoryCode;
    }

    public CopyUserRequest setOriginCategoryCode(String originCategoryCode) {
        this.originCategoryCode = originCategoryCode;
        return this;
    }

    public String getTargetCategoryCode() {
        return targetCategoryCode;
    }

    public CopyUserRequest setTargetCategoryCode(String targetCategoryCode) {
        this.targetCategoryCode = targetCategoryCode;
        return this;
    }

    public String getUserCode() {
        return userCode;
    }

    public CopyUserRequest setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }

    public static void main(String[] args) {
        CopyUserRequest request = new CopyUserRequest();
        List<UserProductCategory> userProductCategoryList = Lists.newArrayList();
        UserProductCategory userProductCategory = new UserProductCategory();
        userProductCategory.setProductCategoryName("loanZoneAll");
        userProductCategory.setDailyOrganicRegisterUserLimit(1000);
        userProductCategory.setDailyNotOrganicRegisterUserLimit(1000);
        userProductCategoryList.add(userProductCategory);
        request.setTargetAppCode("38");
        request.setOriginCategoryCode("5");
        request.setTargetCategoryCode("loanZoneAll");
        request.setUserCode("2018083199006051000901");
        System.out.println(JSONObject.toJSONString(request));
    }
}
